package com.koron.order.workbench.homeCard.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.workbench.homeCard.bean.dto.HomeCardDto;
import com.koron.order.workbench.homeCard.bean.po.HomeCardPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 小组件卡片表(HomeCard)表服务接口
 *
 * @author zhouj
 * @since 2022-03-18 10:19:36
 */
public interface HomeCardService {

    int insertOrUpdate(SessionFactory factory, HomeCardPo homeCard);

    int insertOrUpdateBatch(SessionFactory factory, List<HomeCardPo> homeCardList);

    int insert(SessionFactory factory, HomeCardPo homeCard);

    int insertBatch(SessionFactory factory, HomeCardDto homeCardDto);

    int update(SessionFactory factory, HomeCardPo homeCard);

    int deleteById(SessionFactory factory, String id);

    int deleteByAppId(SessionFactory factory, String appId, String account);

    HomeCardPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, HomeCardPo homeCard, PageQuery pageQuery);

    List<HomeCardPo> queryList(SessionFactory factory, HomeCardPo homeCard);

}
